package sniff.pack;

public class CommonIPPacket extends CommonPacket {
	protected String sourceIP;
	protected String destinationIP;
	protected CommonIPChildPacket childPacket;
	protected String protocol;

	public CommonIPPacket() {
		super();
	}

	public CommonIPPacket(String sourceMAC, String destinationMAC, String type, int lenght, String info, byte[] head,
			byte[] data, String sourceIP, String destinationIP,String protocol) {
		super(sourceMAC, destinationMAC, type, lenght, info, head, data);
		this.sourceIP = sourceIP;
		this.destinationIP =destinationIP;
		this.protocol = protocol;
	}

	public String getSourceIP() {
		return sourceIP;
	}

	public void setSourceIP(String sourceIP) {
		this.sourceIP = sourceIP;
	}

	public String getDestinationIP() {
		return destinationIP;
	}

	public void setDestinationIP(String destinationIP) {
		this.destinationIP = destinationIP;
	}

	public CommonIPChildPacket getChildPacket() {
		return childPacket;
	}

	public void setChildPacket(CommonIPChildPacket childPacket) {
		this.childPacket = childPacket;
	}

	public String getProtocol() {
		return protocol;
	}

	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}
}
